-- GENERATED SPELL FOR [Ghost of the Past] --


function spell0_10940(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(15089,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10940', 8329, 1)
end

function Sorts_10940(pUnit, Event)
local choix_sorts_10940 = math.random(0, 0)
if choix_sorts_10940 == 0 then
pUnit:RegisterEvent('spell0_10940', 1, 1)
end
end

function mob10940_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10940', math.random(1500, 3000), 1)
end

function mob10940_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10940_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10940_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10940, 1, 'mob10940_Action')
RegisterUnitEvent(10940, 2, 'mob10940_Leave')
RegisterUnitEvent(10940, 3, 'mob10940_Kill')
RegisterUnitEvent(10940, 4, 'mob10940_Die')
